package cn.stylefeng.guns.modular.recy.warpper;
/*
 */


import cn.stylefeng.roses.core.base.warpper.*;
import java.util.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.*;
import cn.stylefeng.roses.kernel.model.page.*;
import com.google.common.collect.ImmutableMap;


public class BinsWrapper extends BaseControllerWrapper
{
    public BinsWrapper(final Map<String, Object> single) {
        super(single);
    }

    public BinsWrapper(final List<Map<String, Object>> multi) {
        super(multi);
    }

    public BinsWrapper(final Page<Map<String, Object>> page) {
        super(page);
    }

    public BinsWrapper(final PageResult<Map<String, Object>> pageResult) {
        super(pageResult);
    }

    protected void wrapTheMap(final Map<String, Object> map) {
        Long status = (Long)map.get("status");
        Map<Long,String> statusMap = ImmutableMap.of(0l,"在线",1l,"离线",2l,"箱满");
        if(status==null){
            map.put("status","在线");
        }else{
            map.put("status",statusMap.get(status));
        }
    }
}
